﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Edit.aspx.cs" Inherits="ZLCMS.Web.SystemManage.Basics.Doc.Edit" ValidateRequest="False" %>

<%@ Import Namespace ="ZLCMS.Business" %>

<%@ Register TagPrefix= "fc" TagName= "FileControl" Src= "~/SystemManage/Control/FileControl/FileControl.ascx " %> 
<%@ Register TagPrefix= "ddt" TagName= "DropDownTreeControl" Src= "~/SystemManage/Control/ddt/DropDownTreeControl.ascx " %> 

<form id="pageForm" method="post" runat="Server" class="pageForm required-validate"
onsubmit="return validateCallback(this, navTabAjaxDone);" action="/SystemManage/Basics/Doc/Edit.aspx">
<%=_framePage.TabInfoHtml()%>

<input runat="Server" id="doc_id" type="hidden" />

<div class="pageContent">
    <div class="pageFormContent" layoutH="56">
    
        <%if (DatabaseHelper.IsTrue(_config.Title))
          { %>
        <dl class="nowrap">
            <dt>标题：</dt>
            <dd><asp:textbox id="txtTitle" runat="server" size="50"/></dd>
        </dl>
        <%} %>
        <%if (DatabaseHelper.IsTrue(_config.Name)){ %>
        <dl class="nowrap">
            <dt>名称：</dt>
            <dd><asp:textbox id="txtName" runat="server" type="text" size="50"/></dd>
        </dl>
        <%} %>
        <%if (DatabaseHelper.IsTrue(_config.AttrSupport)){ %>
        <dl class="nowrap">
            <dt>属性：</dt>
            <dd>
            <asp:checkbox id="chkHot" runat="server"/>热门&nbsp;&nbsp;
            <asp:checkbox id="chkRcmd" runat="server"/>推荐</dd>
        </dl>
        <%} %>
        <dl class="nowrap">
            <dt>排序：</dt>
            <dd><asp:textbox runat="server" class="digits" min="0" id="tb_order">0</asp:textbox>&nbsp;（数字越小排序越靠前）</dd>
        </dl>
        <dl class="nowrap">
            <dt>发布日期：</dt>
            <dd><asp:TextBox ID="tb_cdate" runat="server" class="date" format="yyyy-MM-dd"/></dd>
        </dl>
        
        <%if (DatabaseHelper.IsTrue(_config.Author)){ %>
        <dl class="nowrap">
            <dt>发布者：</dt>
            <dd><asp:textbox id="txtWriter" runat="server" type="text" /></dd>
        </dl>
        <%} %>
        
        <%if (DatabaseHelper.IsTrue(_config.Url)){ %>
        <dl class="nowrap">
            <dt>跳转网站地址：</dt>
            <dd><asp:textbox id="txtUrl" runat="server" size="50"/></dd>
        </dl>
        <%} %>
        <%if (DatabaseHelper.IsTrue(_config.TypeId)){ %>
        <dl class="nowrap">
            <dt>所属分类：</dt>
            <dd>
            <%--kind 在CS文件中指定--%>
            <ddt:DropDownTreeControl id= "ddTreeControl" runat= "Server" DataFromUrl="/SystemManage/Control/ddt/TreeData.aspx" RootNode="0"/></dd>
        </dl>
        <%} %>
        
        
        <%if (DatabaseHelper.IsTrue(_config.ThumbnailUrl)){ %>
        <dl class="nowrap">
            <dt>相关图片：</dt>
            <dd><fc:FileControl id= "fc_imgurl" runat= "Server" MaxFiles="1" FileType="jpg|png|jpeg|gif" AllowDelete="true" Enable="true" IsShowHistory="true"/></dd>
        </dl>
        <%} %>
        
        <%if (DatabaseHelper.IsTrue(_config.FileUpload)){ %>
        <dl class="nowrap">
            <dt>相关文件：</dt>
            <%--FileType 在CS文件中指定--%>
            <dd><fc:FileControl id= "fc_fileurl" runat= "Server" AllowDelete="true" Enable="true" IsShowHistory="true"/></dd>
        </dl>
        <%} %>
        
        <%if (DatabaseHelper.IsTrue(_config.Summary)){ %>
        <dl class="nowrap">
            <dt>简介：</dt>
            <dd>
            <textarea class="editor" name="txtSummary" rows="15" cols="75" style="width: 100%" id="txtSummary" runat="Server"
                    uplinkurl="/SystemManage/Common/ContentUpload.aspx?dir=doc&ext=zip,rar,txt" uplinkext="zip,rar,txt"
                    upimgurl="/SystemManage/Common/ContentUpload.aspx?dir=doc&ext=jpg,jpeg,gif,png" upimgext="jpg,jpeg,gif,png"
                    upflashurl="/SystemManage/Common/ContentUpload.aspx?dir=doc&ext=swf" upflashext="swf"
                    upmediaurl="/SystemManage/Common/ContentUpload.aspx?dir=doc&ext=avi" upmediaext="avi">
            </textarea>
            </dd>
        </dl>
        <%} %>
        
        <%if (DatabaseHelper.IsTrue(_config.Content)) { %>
        <dl class="nowrap">
            <dt>详细内容：</dt>
            <dd>
                <textarea class="editor" name="txtContent" rows="15" cols="75" style="width: 100%" id="txtContent" runat="Server"
                    uplinkurl="/SystemManage/Common/ContentUpload.aspx?dir=doc&ext=zip,rar,txt" uplinkext="zip,rar,txt"
                    upimgurl="/SystemManage/Common/ContentUpload.aspx?dir=doc&ext=jpg,jpeg,gif,png" upimgext="jpg,jpeg,gif,png"
                    upflashurl="/SystemManage/Common/ContentUpload.aspx?dir=doc&ext=swf" upflashext="swf"
                    upmediaurl="/SystemManage/Common/ContentUpload.aspx?dir=doc&ext=avi" upmediaext="avi">
                </textarea>
            </dd>
        </dl>
        <%} %>
        
        <%if (DatabaseHelper.IsTrue(_config.SeoSupport)) { %>
        <h2 class="contentTitle">SEO 优化设置</h2>
   
        <dl class="nowrap">
            <dt>网页标题：</dt>
            <dd><asp:textbox id="txtWebTitle" runat="server"  size="50"/></dd>
        </dl>
        <dl class="nowrap">
            <dt>关键字：</dt>
            <dd><asp:textbox id="txtKeyword" runat="server" size="50"/></dd>
        </dl>
        <dl class="nowrap">
            <dt>页面描述：</dt>
            <dd><asp:textbox runat="server" id="txtDesc" size="80"></asp:textbox></dd>
        </dl>        
        <%} %>          
	</div>
		
    <div class="formBar">
	    <ul>
	        <li>
	        <div class="buttonActive"><div class="buttonContent"><button onclick="if(collect){collect();}" type="submit">保存</button></div></div>
            </li>
			<li>
		    <div class="button"><div class="buttonContent"><button type="button" class="close">取消</button></div></div>
			</li>
		</ul>
</div>

</div>
</form>